<!--  -->
<script setup>
import PopWindow from '@/components/PopWindow.vue'
import Icon from '@/components/Icon.vue'
import { ref } from 'vue'
import { useSiteStore } from '@/stores'
import SubmitBtn from '@/components/button/SubmitBtn.vue'

defineProps(['condition'])
defineEmits(['close', 'submit'])


function switchTheme(t) {
  useSiteStore().setTheme(t)
  document.documentElement.dataset.theme = t
}
</script>

<template>
  <PopWindow :condition="condition" @close="$emit('close')">
    <div class="pop-window-header">
      <div class="title">Settings</div>
    </div>
    <div class="pop-window-body">
      <div class="label">More Theme (developing)</div>
      <!-- <div style="display: flex; gap: 10px;">
        <SubmitBtn @click="switchTheme('orange')">Orange</SubmitBtn>
        <SubmitBtn @click="switchTheme('snow')">Snow</SubmitBtn>
      </div> -->
    </div>
    <div class="pop-window-footer">
    </div>
  </PopWindow>
</template>

<style scoped lang="scss">
.pop-window-header {

  .title {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 2rem;
    color: var(--text-03);
  }
}

.pop-window-body {
  flex: 1;
  margin: 2em 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;

  .btn {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .label {
    font-weight: 400;
    color: var(--text-02);

    .desc {
      margin-left: 10px;
      font-size: 0.8rem;
      color: #979797;
    }
  }

  .pop-window-footer {
    display: flex;
    justify-content: end;
  }
}
</style>
